package com.mycompany.crm.model;

/**
 * @author jy
 * @version 1.0
 * @date 2022/2/24 11:20
 * 树形结构模型类
 */
public class TreeModel {

    private Integer id;
    private Integer pId;
    private String name;
    /**
     * 复选框是否被选中，如果是true则勾选；反之则不勾选
     */
    private boolean checked = false;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }
}
